export default {
  state:{name:"a"},
  mutations:{
    updateName(state,payload){state.name = payload}
  },
  actions:{
    aUpdateName(context){
      setTimeout(()=>{
        context.commit("updateName","ccc");
      },1000);
    }
  },
  getters: {
    fullName(state){return state.name + "_1";},
    fullName2(state,getters){return getters.fullName;},
    fullName3(state,getters,rootState){return rootState.info.name;}
  }
}
